<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑板块</title>
<load href="__PUBLIC__/css/bootstrap.min.css" />
<import type='css' file="css.main" />
<load href="__PUBLIC__/js/jquery-1.9.1.min.js" />
<load href="__PUBLIC__/js/jquery-ui.min.js" />
<import type='js' file="js.main" />
<import type='js' file="js.setshowflag" />
<script type="text/javascript">
$(function(){
	$("select[name='tpl']").change(function(){
		var selectedIndex = $(this).get(0).selectedIndex;
		$(".thumbpreview:eq("+selectedIndex+")").show().siblings().hide();
	})
	var template = "{$resourcearticle.tpl}";
	$("select[name='tpl'] option").each(function(index, element) {
        if($(this).val()==template){
			$(this).attr("selected","selected");
			$(".thumbpreview:eq("+(index)+")").show().siblings().hide();	
		}
    });
})
</script>
</head>

<body id="body">
<assign name='id' value="$Think.get.id" />
<div class="main-frame">
	<div class="position">华人码 > 编辑板块</div>
	<div class="addobject">
		<div class="obj-form">
			<form name="form1" id="form1" action="{:U('plateeditinfo',array('id'=>$resourcearticle['id']))}" method="post" class="form-inline">
				<ul>
					<li>
						<label class="fl tle">板块名称：</label>
						<span class="fl cnt">
						<input name="typename" class="form-control" placeholder="板块名称" value='{$resourcearticle.typename}' style="width: 450px;"><em>*</em>
						</span>
					</li>
					<li>
						<label class="fl tle">排序：</label>
						<span class="fl cnt">
						<input name="sort" class="form-control" placeholder="排序" value='{$resourcearticle.sort}' style="width: 60px;">
						</span>
					</li>
					<li class="submit">
						<label class="fl tle">&nbsp;</label>
						<span class="fl cnt"><input type="submit" value="保存修改" class="submitbtn" /></span>
					</li>
				</ul>
			</form>
		</div>
		<div class="obj-previewimg">
			<div class="instructions">
				<b>备注说明：</b><br>
				1、带有红色  “ * ” 项必填<br>
			</div>
		</div>
	</div>

</div>
</body>
</html>
